import { Layout } from '@fl/utils/routerHelper'

const elevatorRequirementRoute: AppRouteRecordRaw = {
    children: [
        // #region 上报需求列表
        {
            component: () => import('@/pages/retrofit-elevator/requirement/success-list.vue'),
            meta: {
                title: '上报需求列表',
                permission: ['需求上报-列表'],
            },
            name: 'retrofit-elevator-requirement-list',
            path: 'success-list',
        },
        // {
        //     component: () => import('@/pages/retrofit-elevator/requirement/fail-list.vue'),
        //     meta: {
        //         title: '上报需求失败列表',
        //     },
        //     name: 'fail-list',
        //     path: 'fail-list',
        // },
        {
            component: () => import('@/pages/retrofit-elevator/requirement/detail.vue'),
            meta: {
                activeMenu: '/retrofit-elevator/requirement/success-list',
                hidden: true,
                noTagsView: true,
                title: '上报详情',
                permission: ['需求上报-详情'],
            },
            name: 'requirement-detail',
            path: 'detail/:id',
        },
        {
            component: () => import('@/pages/retrofit-elevator/requirement/identity-verify-fail-list.vue'),
            meta: {
                // activeMenu: '/retrofit-elevator/requirement/success-list',
                title: '业主身份比对失败列表',
                permission: ['身份失败-列表'],
            },
            name: 'identity-verify-fail-list',
            path: 'identity-verify-fail-list',
        },
        {
            component: () => import('@/pages/retrofit-elevator/inventory-history/index.vue'),
            meta: {
                title: '不在清册范围内列表(历史)',
                permission: ['不在清册范围内列表(历史)-列表'],
            },
            name: 'retrofit-elevator-inventory-history',
            path: 'inventory-history',
        },
        
    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        icon: 'i-gg:data',
        permission: ['身份失败-列表', '需求上报-详情','需求上报-列表', '不在清册范围内列表(历史)-列表'],
        title: '上报需求管理',
    },
    name: 'requirement',
    path: 'requirement',
}
export default elevatorRequirementRoute
